import java.util.Date;
import java.util.concurrent.TimeUnit;

public class Demo {
    public static void main(String[] args) throws InterruptedException {
        System.out.println("" + Runtime.getRuntime().availableProcessors());
        System.out.println(new Date());
        TimeUnit.SECONDS.sleep(10);
        System.out.println(new Date());
        TimeUnit.DAYS.sleep(1);

    }

    public synchronized void A (){
        try {
            wait();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
